package com.niguang.work.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_sub_user")
public class SubUser extends Model<SubUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 订单ID
     */
    private Long subId;
    /**
     * 个人发布找工作id
     */
    private Long personalReleaseId;
    /**
     * 工地ID
     */
    private Long siteId;
    /**
     * 个人发布找工作用户id
     */
    private Long userId;
    /**
     * 订单状态 1-未完成 2-已完成 3-已关闭
     */
    private Integer subState;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 删除标识 0-未删除 1-已删除
     */
    @TableLogic
    private Integer delFlag;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSubId() {
        return subId;
    }

    public void setSubId(Long subId) {
        this.subId = subId;
    }

    public Long getPersonalReleaseId() {
        return personalReleaseId;
    }

    public void setPersonalReleaseId(Long personalReleaseId) {
        this.personalReleaseId = personalReleaseId;
    }

    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getSubState() {
        return subState;
    }

    public void setSubState(Integer subState) {
        this.subState = subState;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public static final String ID = "id";

    public static final String SUB_ID = "sub_id";

    public static final String PERSONAL_RELEASE_ID = "personal_release_id";

    public static final String SITE_ID = "site_id";

    public static final String USER_ID = "user_id";

    public static final String SUB_STATE = "sub_state";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SubUser{" +
        "id=" + id +
        ", subId=" + subId +
        ", personalReleaseId=" + personalReleaseId +
        ", siteId=" + siteId +
        ", userId=" + userId +
        ", subState=" + subState +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        "}";
    }
}
